package com.example.autooperation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
@TableName("task")
public class Task {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotBlank(message = "任务名称不能为空")
    private String name;
    private String description;
    private Integer status;
    private LocalDateTime createTime;
    private Integer currentStep;
} 